<?php
$trClass = '';
if ($this->firstChild)
{
	$trClass .= 'first-child ';
}

if ($this->lastChild)
{
	$trClass .= 'last-child ';
}
?>
<tr class="active-container <?php echo $trClass; ?>"<?php echo $this->_sortable ? 'data-sortable="' .$this->GetSortableValue($this->obj). '"' : ''; ?>>
<?php
$cellNum = 0;
foreach ($this->_showCells as $cellName)
{
	$cellNum++;
	if ($cellNum == 1)
	{
		$tdClass = 'first';
	}
	else if ($cellNum == $this->_cellCount)
	{
		$tdClass = 'last';
	}
	else
	{
		$tdClass = '';
	}

	if (isset($this->_cellClasses[$cellName]))
	{
		$thClass .= ' ' .$this->_cellClasses[$cellName];
	}

	?><td class="cell-<?php echo $cellName; ?> <?php echo $tdClass; ?>"><?php echo $this->{'GetCell' .$cellName}($this->obj); ?></td><?php
}
?>
</tr>